package com.haiyangwang1.lesson12.pointer;

public class Text {
    public static void main(String[] args) {
        P1 p1=new P1();
        p1.x=5;
        p1.y=25;
        P1 p2=new P1();
        p2.x=30;
        p2.y=21;
        double distance=p1.getDistance(p2);
        System.out.println(distance);
    }

}
